package com.example;

import com.example.service.OrderService;
import com.example.service.UserService;
import com.mySpring.MyApplicationContext;

/**
 * @ClassName com.example.T1
 * @Description
 * @Author Yin
 * @Date 2021/4/8 21:07
 * @Version 1.0
 */
public class StartApplication {
    public static void main(String[] args) {
        MyApplicationContext myApplicationContext = new MyApplicationContext(AppConfig.class);
        OrderService orderService =(OrderService) myApplicationContext.getBean("orderService");
        UserService userService = (UserService) myApplicationContext.getBean("userService");
        userService.test();
    }
}
